home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2002 #11
/
Amiga Plus CD - 2002 - No. 11.iso
/
Tools
/
Development
/
PowerD
/
powerd
/
source
/
lib
/
powerd_lib.lha
/
PowerD_PPC
/
AllocVecPooledPPC.ass
< prev
next >
Wrap
Text File
|
2001-07-09
|
517b
|
33 lines
# AllocVecPooledPPC(pool:r3:PTR,size:r4:LONG)(PTR)
.text
.global _AllocVecPooledPPC
_AllocVecPooledPPC:
mflr r0
stw r0,8(r1)
stwu r1,-32(r1)
stw r4,24(r1)
mr r5,r4
addi r5,r5,4 # add the SIZEOF_LONG
mr r4,r3
lwz r3,_PowerPCBase(r2)
lwz r0,-828+2(r3)
mtlr r0
blrl
lwz r4,24(r1)
stw r4,0(r3)
addi r3,r3,4 # store the size and return the position
addi r1,r1,32
lwz r0,8(r1)
mtlr r0
blr
.type _AllocVecPooledPPC,@function
.size _AllocVecPooledPPC,$-_AllocVecPooledPPC
.extern _PowerPCBase